#include"monster.h"
#include"AbstructFactory.h"
#include<iostream>
#include<vector>
using namespace std;
vector<Monster*> AbstructFactory::vt;
int main()
{
    // Monster* p1 = new Shooter1();
    // Monster* p2 = new Shooter2();
    // Monster* p3 = new Master1();
    // Monster* p4 = new Master2(); 
    // Monster* p5 = new Meatshield1();
    // Monster* p6 = new Meatshield2();

    // p1->showDetail();
    // p2->showDetail();
    // p3->showDetail();
    // p4->showDetail();
    // p5->showDetail();
    // p6->showDetail();

    AbstructFactory *cf1 = new concreteFactory1();
    AbstructFactory *cf2 = new concreteFactory2();
    
    cf1->createMonster();
    cf2->createMonster();
    for(int i = 0; i < AbstructFactory::vt.size(); ++i) {
        AbstructFactory::vt[i]->showDetail();
    }
    return 0;
}